/*
 * @Author: xuesong
 * @Date: 2022-01-11 14:34:45
 * @LastEditors: xuesong
 * @LastEditTime: 2022-01-18 20:41:26
 * @FilePath: \BLE-SDK-SVN499-V05\projects\ble_peripheral\uart_ble\src\Remote\user_Bz.h
 */

#ifndef __USER_BZ_H__
#define __USER_BZ_H__


#include "bcomdef.h"
#include "ll_def.h"
#include "comdef.h"
#include "User_keyScan.h"

#ifdef __cplusplus
extern "C"
{
#endif


//--------------------------------------------------
#define BZ_PIN	    P33

typedef struct{
    uint8 flag;
    int8 Count;
    uint16 OnTime;
    uint16 OffTime;
}User_BZ_t;
#define B_BZ_Disable   0x01
#define B_BZ_RUN       0x02
#define B_BZ_ON        0x04
#define B_BZ_KeyOn     0x08

extern User_BZ_t   UseBzData;
extern uint32    Bz_ON_Time;
/*********************************************************************
 * FUNCTIONS
 */
void Bz_IO_Init(void);
void Bz_init_ONOFF(User_BZ_t bzData);
void BZ_Precss(void);
void SwithBZPWM(uint8 value);



#ifdef __cplusplus
}
#endif

#endif
